package com.equipment.fkdcn.service;

import com.equipment.fkdcn.mapper.DepartmentMapper;
import com.equipment.fkdcn.pojo.Department;

import java.util.List;

public class DepartmentServiceImpl implements DepartmentService{

    private DepartmentMapper dpMapper;

    public void setDpMapper(DepartmentMapper dpMapper) {
        this.dpMapper = dpMapper;
    }

    public List<Department> allQuery() {
        return dpMapper.allQuery();
    }

    public boolean addDept(Department department) {
        return dpMapper.addDept(department);
    }

    public boolean delDept(int id) {
        return dpMapper.delDept(id);
    }
}
